<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MenuList.ascx.cs" Inherits="UserControls_MenuList" %>


<div id="Div1" runat="server">
    <asp:DataList ID="list" runat="server" OnItemDataBound="list_ItemDataBound" EnableViewState="true" style="text-align: left">
        <ItemTemplate>
             <asp:HyperLink ID="HyperLink1" runat="server" CssClass="menuActiveLink"  style="text-decoration:none;" 
        NavigateUrl='<%# "../Catalog.aspx?DepartmentID=" + Eval("DepartmentID")%>' 
        Text='<%# Eval("Name")+" "+Eval("NumberOfProducts") %>'>
        </asp:HyperLink>
            <!-- <asp:LinkButton ID="LinkButton1" style="text-decoration:none;" runat="server" CommandName="Select" PostBackUrl='<%# "../Catalog.aspx?DepartmentID=" + Eval("DepartmentID")%>'
                Text='<%# Eval("Name") +" "+Eval("NumberOfProducts") %>'>
            </asp:LinkButton> -->
        </ItemTemplate>
        <SelectedItemTemplate>
         <asp:HyperLink ID="HyperLink1"  CssClass="menuActiveLink" runat="server" style="text-decoration:none; color: #cc9e2c"
        NavigateUrl='<%# "../Catalog.aspx?DepartmentID=" + Eval("DepartmentID")%>' 
        Text='<%# Eval("Name")+" "+Eval("NumberOfProducts") %>'>
        </asp:HyperLink>
           <!-- <asp:LinkButton ID="LinkButton1" style="text-decoration:none" runat="server" CommandName="Select" 
                PostBackUrl='<%# "../Catalog.aspx?DepartmentID=" + Eval("DepartmentID")%>' Text='<%# Eval("Name")+" "+Eval("NumberOfProducts") %>'> 
            </asp:LinkButton> -->
        </SelectedItemTemplate>
    </asp:DataList>
</div>
